<!DOCTYPE html>
<html lang="zh-CN">
	<head>
		<meta charset="UTF-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<title>Document</title>
	</head>
	<body>
		<div>Users:</div>
		<ul>
			<li>John</li>
			<li>Pete</li>
		</ul>
	</body>
	<script>
		// 获取div节点
		let div = document.body.firstElementChild
		console.log(div)

		// 获取ul节点
		let ul = div.nextElementSibling
		console.log(ul)

		// 获取ul中第二个li
		let li2 = ul.children[1]
		console.log(li2)
	</script>
</html>
